package com.duoduo.admin.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Data;

@Entity
@Data
@EntityListeners(AuditingEntityListener.class)
public class SysFile implements Serializable {

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
     /**
	 * ID
	 */
	private Long id;
     /**
	 * 文件名
	 */
	private String fileName;
     /**
	 * 桶名
	 */
	private String bucketName;
     /**
	 * 原件地址
	 */
	private String original;
     /**
	 * 类型
	 */
	private String type;
     /**
	 * 文件大小
	 */
	private Long fileSize;
     /**
	 * 删除标识
	 */
	private Boolean delFlag;
     /**
	 * 创建人
	 */
    @CreatedBy
	private String createBy;
     /**
	 * 创建时间
	 */
    @CreatedDate
	private LocalDateTime createTime;
     /**
	 * 修改人
	 */
    @LastModifiedBy
	private String updateBy;
     /**
	 * 更新时间
	 */
    @LastModifiedDate
	private LocalDateTime updateTime;

}
